/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UserInterface;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author HOME
 */
public class DirectoryFilter extends FileFilter{

    @Override
    public boolean accept(File f) {
       if(f.isDirectory()){
           return true;
       }
       else{
           return false;
       }
    }

    @Override
    public String getDescription() {
       return "Just a directory";
    }

}
